@font-face {
    font-family: 'Heming';
    src: url('fonts/heming_variable-webfont.woff') format('woff2'),
            url('fonts/heming_variable-webfont.woff2') format('woff');
}
:root{
    --background-clr: #F3F4F6 ;
    --secondary-clr: #324EEF ; 
    --text-clr: #2E2E2E; 
    --text-hvr-clr : #F3F4F6;
    --nav-hvr-clr : #324EEF;
    --details-clr: rgba(48, 48, 48, 0.3);
}
.dark-theme{
    --background-clr: #1e1e1e ;
    --secondary-clr: #324EEF ; 
    --text-clr: #F3F4F6; 
    --nav-hvr-clr : #324EEF;
    --text-hvr-clr : #F3F4F6;
    --details-clr: rgba(163, 163, 163, 0.441);
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    width: 100%;
    height: 100%;
    font-family: 'Heming', sans-serif;
}

body{
    height: 100vh;
    background: var(--background-clr);
}

.wrapper{
    width: 100%;
    height: 100%;
}
.nav{
    display: flex;
    padding: 2em 2.5em;
    border-bottom: 1px solid var(--details-clr);
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.nav-bar{
    display: flex;
    gap: 2em;
}

a {
    text-decoration: none;
    color: var(--text-clr);
    font-size: 1.2rem;
}
a:hover{
    color: var(--text-hvr-clr);
}

.footer {
    display: flex;
    position: relative;
    bottom: 0;
    padding: 2em 2em;
    color: var(--details-clr);
    justify-content: space-between;
    align-items: center;
}
.footer a, .footer p{
    color: var(--details-clr);
    font-size: 0.8em;
}

.transition{
    position: absolute;
    z-index: 50;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    background: var(--secondary-clr);
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
}

.container{
    padding: 2em;
}

.header{
    position: relative;
    width: max-content;
    height: max-content;
}

h1{
    position: relative;
    line-height: 1;
    font-size: 120px;
    font-weight: 400;
    color: var(--text-clr);
    top: 120px;
    z-index: -2;
}

.header-revealer {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
   
}

.header-revealer:after {
    content: "";
    position: absolute;
    top: 120px;
    left: 0;
    width: 110%;
    height: 110%;
    background: var(--background-clr);
    z-index: -1;
}
.container-sequence{
    padding: 2em 0;
    display: flex;
    flex-direction: column;
}
.container-sequence a{
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--details-clr);
    font-size: 1rem;
    position: relative;
    padding: 22px 32px;
    left: -32px;
    width: 100vw;
    transition: all 0.3s ease;
    align-items: center;
}
.container-sequence a:hover{
    color: var(--text-hvr-clr);
    cursor: pointer;
}
.left{
    display: flex;
    align-items: center;
    gap: 35vw;
}
.left-container{
    display: flex;
    gap: 15px;
    align-items: center;
}
.left-container svg{
    height: 20px;
}
.hover{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 19px;
    overflow: hidden;
}
.hover .main,
.hover .duplicate {
    display: inline-block;
    transition: transform 0.3s ease;
    
}
.hover:hover .duplicate,  .hover:hover .main {
    transform: translateY(-20px);
    color: var(--nav-hvr-clr);
}

.container-sequence a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--secondary-clr);
    /* opacity: 0; */
    transition:all 0.3s ease; /* Ajoute une transition d'opacité */
    top: 65px;
}
.container-sequence a:hover::after {
    top: 0;
    z-index: -1;
}
.theme-switch {
    position: relative;
    display: flex;
    justify-content: center;
    direction: rtl;
  }
  
  #theme-checkbox {
    display: none;
  }
  
  #theme-checkbox + label {
    /* change the font-size below to change the size of the switch button*/
    font-size: 1.8rem;
    height: 1em;
    width: 2.5em;
    border-radius: 0.25em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background-color: rgba(133, 133, 133, 0.376);
    position: relative;
  }
  
  #theme-checkbox:checked + label {
    background-color: rgba(147, 147, 147, 0.376);
  }
  
  #theme-checkbox + label:active {
    transform: scale(0.85);
    transition: transform 0.2s;
  }
  
  #theme-checkbox + label div {
    width: 0.8em;
    height: 0.8em;
    border-radius: inherit;
    position: absolute;
    top: 0.1em;
    left: 0.1em;
    z-index: 10;
    transition: background-color 0.1s, left 0.5s cubic-bezier(1, 0.33, 0.11, 1.34);
    background-color: var(--background-clr);
  }
  
  #theme-checkbox:checked + label div {
    left: calc(2.5em - 0.8em - 0.2em);
    background-color: var(--background-clr);
  }
  
  #theme-checkbox + label span {
    display: flex;
  }
  
  #theme-checkbox + label svg {
    display: inline-block;
    height: 1em;
    width: 1em;
    padding: 0.15em;
    box-sizing: border-box;
  }
  
  #theme-checkbox + label span:first-of-type {
    color: var(--secondary-clr);
  }
  
  #theme-checkbox + label span:last-of-type {
    color: var(--secondary-clr);
  }
  